package models;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import play.db.jpa.Model;

@Entity
@Table(name = "Notes")
public class Note extends Model {

	@Lob
	public String note;
	
	public String name;
	@ManyToOne
	public User user;

	/**
	 * constructs a new note
	 * 
	 * @param note
	 * @param name
	 */
	public Note(String name,String note) {
		this.note = note;
		this.name=name;
	}
}
